home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / bashsrc.zoo / machines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-05  |  9.7 KB  |  432 lines

  1. /* machines.h --
  2.    Included file in the makefile that gets run through Cpp.  This file
  3.    tells which machines have what features based on the unique machine
  4.    identifier present in Cpp. */
  5.  
  6. /* **************************************************************** */
  7. /*                                    */
  8. /*            Sun Miscrosystems Machines              */
  9. /*                                    */
  10. /* **************************************************************** */
  11.  
  12. #if defined (sun)
  13. #  if defined (mc68010)
  14. #    define sun2
  15. #  endif
  16. #  if defined (mc68020)
  17. #    define sun3
  18. #  endif
  19. #  if defined (sparc)
  20. #    define sun4
  21. #  endif
  22. #  if defined (i386)
  23. #    define Sun386i
  24. #    undef i386
  25. #  endif
  26. #if defined (HAVE_SHARED_LIBS)
  27. #  define M_OS SunOS4
  28. #else
  29. #  define M_OS SunOS3
  30. #endif
  31. #endif /* sun */
  32.  
  33. /* ************************ */
  34. /*                */
  35. /*        Sun2        */
  36. /*                */
  37. /* ************************ */
  38. #if defined (sun2)
  39. #define M_MACHINE "sun2"
  40. #define HAVE_SIGLIST
  41. #define USE_GNU_MALLOC
  42. #define HAVE_SETLINEBUF
  43. #define HAVE_VPRINTF
  44. #ifndef HAVE_GCC
  45. #define HAVE_ALLOCA
  46. #endif
  47. #endif /* sun2 */
  48.  
  49. /* ************************ */
  50. /*                */
  51. /*        Sun3        */
  52. /*                */
  53. /* ************************ */
  54. #if defined (sun3)
  55. #define M_MACHINE "sun3"
  56. #define HAVE_SIGLIST
  57. #define USE_GNU_MALLOC
  58. #define HAVE_SETLINEBUF
  59. #define HAVE_VPRINTF
  60. #ifndef HAVE_GCC
  61. #define HAVE_ALLOCA
  62. #endif
  63. #endif /* sun3 */
  64.  
  65. /* ************************ */
  66. /*                */
  67. /*        Sparc        */
  68. /*                */
  69. /* ************************ */
  70. #if defined (sun4)
  71. #define M_MACHINE "sparc"
  72. #define HAVE_SIGLIST
  73. #define HAVE_SETLINEBUF
  74. #define HAVE_VPRINTF
  75. #define USE_GNU_MALLOC
  76. #ifndef HAVE_GCC
  77. #define HAVE_ALLOCA
  78. #endif
  79. #endif /* sparc */
  80.  
  81. /* ************************ */
  82. /*                */
  83. /*        Sun386i        */
  84. /*                */
  85. /* ************************ */
  86. #if defined (Sun386i)
  87. #define M_MACHINE "Sun386i"
  88. #define HAVE_SIGLIST
  89. #define USE_GNU_MALLOC
  90. #define HAVE_SETLINEBUF
  91. #define HAVE_VPRINTF
  92. #ifndef HAVE_GCC
  93. #define HAVE_ALLOCA
  94. #endif
  95. #endif /* Sun386i */
  96.  
  97. /* **************************************************************** */
  98. /*                                    */
  99. /*            DEC Machines (vax, decstations)           */
  100. /*                                    */
  101. /* **************************************************************** */
  102.  
  103. /* ************************ */
  104. /*                */
  105. /*        Vax            */
  106. /*                */
  107. /* ************************ */
  108. #if defined (vax)
  109. #define M_MACHINE "vax"
  110. #if defined (ultrix)
  111. #  define HAVE_VPRINTF
  112. #  define M_OS Ultrix
  113. #else
  114. #  define M_OS Bsd
  115. #endif /* ultrix */
  116. #define HAVE_SETLINEBUF
  117. #define HAVE_SIGLIST
  118. #define USE_GNU_MALLOC
  119. #endif /* vax */
  120.  
  121. /* ************************ */
  122. /*                */
  123. /*        MIPSEL        */
  124. /*                */
  125. /* ************************ */
  126. #if defined (MIPSEL)
  127. #define M_MACHINE "MIPSEL"
  128. #if defined (ultrix)
  129. #  define M_OS Ultrix
  130. #else
  131. #  define M_OS Bsd
  132. #endif
  133. #define HAVE_SIGLIST
  134. #define USE_GNU_MALLOC
  135. #define HAVE_SETLINEBUF
  136. #define HAVE_VPRINTF
  137. #ifndef HAVE_GCC
  138. #define HAVE_ALLOCA
  139. #endif
  140. #endif /* MIPSEL */
  141.  
  142. /* ************************ */
  143. /*                */
  144. /*        MIPSEB        */
  145. /*                */
  146. /* ************************ */
  147. #if defined (MIPSEB)
  148. #define M_MACHINE "MIPSEB"
  149. #define M_OS Bsd
  150. #define HAVE_SIGLIST
  151. #define USE_GNU_MALLOC
  152. #define HAVE_SETLINEBUF
  153. #define HAVE_VPRINTF
  154. #ifndef HAVE_GCC
  155. #define HAVE_ALLOCA
  156. #endif
  157. #define SYSDEP_CFLAGS -systype bsd43
  158. #endif /* MIPSEB */
  159.  
  160. /* ************************ */
  161. /*                          */
  162. /*          Pyramid         */
  163. /*                          */
  164. /* ************************ */
  165. #if defined (pyr)
  166. #define M_MACHINE "Pyramid"
  167. #define M_OS Bsd
  168. #define HAVE_SIGLIST
  169. #define USE_GNU_MALLOC
  170. #define HAVE_SETLINEBUF
  171. /* We do have vfprinf and varargs, but I get an syntax error at line
  172.    486 of make_cmd if I use them ?! */
  173. /* #define HAVE_VPRINTF */
  174. #ifndef HAVE_GCC
  175. #define HAVE_ALLOCA
  176. #endif
  177. #endif /* pyr */
  178.  
  179. /* ************************ */
  180. /*                */
  181. /*        IBMRT        */
  182. /*                */
  183. /* ************************ */
  184. #if defined (ibm032)
  185. #define M_MACHINE "IBMRT"
  186. #define M_OS Bsd
  187. #define HAVE_SIGLIST
  188. #define HAVE_SETLINEBUF
  189. #define USE_GNU_MALLOC
  190. #define SYSDEP_CFLAGS -ma
  191. #endif /* ibm032 */
  192.  
  193. /* ************************ */
  194. /*                */
  195. /*        i386        */
  196. /*                */
  197. /* ************************ */
  198. #if defined (i386)
  199. #undef i386
  200. #define M_MACHINE "i386"
  201. #define M_OS SYSV
  202. #define SYSDEP_CFLAGS -DNO_WAIT_H
  203. #if !defined (HAVE_GCC)
  204. #  define HAVE_ALLOCA
  205. #  define REQUIRED_LIBRARIES -lPW
  206. #endif /* !HAVE_GCC */
  207. #define USE_GNU_MALLOC
  208. #endif /* i386 */
  209.  
  210. /* ************************ */
  211. /*                */
  212. /*        NeXT        */
  213. /*                */
  214. /* ************************ */
  215. #if defined (NeXT)
  216. #define M_MACHINE "NeXT"
  217. #define M_OS Bsd
  218. #define HAVE_ALLOCA
  219. #define HAVE_VPRINTF
  220. #define HAVE_SIGLIST
  221. #endif
  222.  
  223. /* ************************ */
  224. /*                */
  225. /*        hp9000        */
  226. /*                */
  227. /* ************************ */
  228. #if defined (hp9000) && !defined (hpux)
  229. #define M_MACHINE "hp9000"
  230. #define M_OS Bsd
  231. #define HAVE_SIGLIST
  232. #define HAVE_SETLINEBUF
  233. #define USE_GNU_MALLOC
  234. #endif /* hp900 && !hpux */
  235.  
  236. /* ************************ */
  237. /*                */
  238. /*        hpux        */
  239. /*                */
  240. /* ************************ */
  241. #if defined (hpux)
  242. #define M_MACHINE "hpux"
  243. #define M_OS HPUX
  244. #define REQUIRED_LIBRARIES -lBSD
  245. #define HAVE_SIGLIST
  246. #define USE_GNU_MALLOC
  247. #endif /* hpux */
  248.  
  249. /* ************************ */
  250. /*                */
  251. /*        Xenix286        */
  252. /*                */
  253. /* ************************ */
  254. #if defined (Xenix286)
  255. #define M_MACHINE "i286"
  256. #define M_OS "Xenix"
  257. #define USE_GNU_MALLOC
  258. #define REQUIRED_LIBRARIES -lx
  259. #endif
  260.  
  261. /* ************************ */
  262. /*                */
  263. /*        Xenix286        */
  264. /*                */
  265. /* ************************ */
  266. #if defined (Xenix286)
  267. #define M_MACHINE "i386"
  268. #define M_OS "Xenix"
  269. #define ALLOCA_ASM x386-alloca.s
  270. #define USE_GNU_MALLOC
  271. #define REQUIRED_LIBRARIES -lx
  272. #endif
  273.  
  274. /* ************************ */
  275. /*                */
  276. /*        convex        */
  277. /*                */
  278. /* ************************ */
  279. #if defined (convex)
  280. #define M_MACHINE "convex"
  281. #define M_OS SYSV
  282. #define HAVE_VPRINTF
  283. #define HAVE_SIGLIST
  284. #define USE_GNU_MALLOC
  285. #endif /* convex */
  286.  
  287. /* ************************ */
  288. /*                */
  289. /*        sony        */
  290. /*                */
  291. /* ************************ */
  292. #if defined (sony)
  293. #define M_MACHINE "sony"
  294. #define M_OS Bsd
  295. #define HAVE_SIGLIST
  296. #define HAVE_SETLINEBUF
  297. #define USE_GNU_MALLOC
  298. #endif /* sony */
  299.  
  300. /* ************************ */
  301. /*                */
  302. /*        aix            */
  303. /*                */
  304. /* ************************ */
  305. #if defined (aix)
  306. #define M_MACHINE "aix"
  307. #define M_OS Bsd
  308. #define HAVE_VPRINTF
  309. #define HAVE_SIGLIST
  310. #define USE_GNU_MALLOC
  311. #endif /* aix */
  312.  
  313. /* ************************ */
  314. /*                */
  315. /*        att3b        */
  316. /*                */
  317. /* ************************ */
  318. #if defined (att3b)
  319. #define M_MACHINE "att3b"
  320. #define M_OS SYSV
  321. #define HAVE_SIGLIST
  322. #define USE_GNU_MALLOC
  323. #endif /* att3b */
  324.  
  325. /* ************************ */
  326. /*                */
  327. /*        att386        */
  328. /*                */
  329. /* ************************ */
  330. #if defined (att386)
  331. #define M_MACHINE "att386"
  332. #define M_OS SYSV
  333. #if !defined (HAVE_GCC)
  334. #define HAVE_ALLOCA
  335. #define REQUIRED_LIBRARIES -lPW
  336. #endif /* HAVE_GCC */
  337. #define HAVE_SIGLIST
  338. #define USE_GNU_MALLOC
  339. #endif /* att386 */
  340.  
  341. /* ************************ */
  342. /*                */
  343. /*        Encore        */
  344. /*                */
  345. /* ************************ */
  346. #if defined (MULTIMAX)
  347. #if defined (n16)
  348. #define M_MACHINE "Multimax32k"
  349. #else
  350. #define M_MACHINE "Multimax"
  351. #endif /* n16 */
  352. #if defined (CMU)
  353. #define M_OS Mach
  354. #else
  355. #define M_OS Bsd
  356. #endif
  357. #define HAVE_SIGLIST
  358. #ifndef HAVE_GCC
  359. #define HAVE_ALLOCA
  360. #endif
  361. #define USE_GNU_MALLOC
  362. #define HAVE_SETLINEBUF
  363. #endif  /* MULTIMAX */
  364.  
  365. /* ************************ */
  366. /*                */
  367. /*        clipper        */
  368. /*                */
  369. /* ************************ */
  370. /* This is for the Orion 1/05 (A BSD 4.2 box based on a Clipper processor */
  371. #if defined (clipper)
  372. #define M_MACHINE "clipper"
  373. #define M_OS Bsd
  374. #define HAVE_ALLOCA
  375. #define USE_GNU_MALLOC
  376. #define HAVE_SETLINEBUF
  377. #endif  /* clipper */
  378.  
  379. /* **************************************************************** */
  380. /*                                    */
  381. /*            Generic Entry                   */
  382. /*                                        */
  383. /* **************************************************************** */
  384.  
  385. /* Use this entry for your machine if it isn't represented here.  It
  386.    is based on a Vax running Bsd. */
  387.  
  388. #if !defined (M_MACHINE)
  389. #define UNKNOWN_MACHINE
  390. #endif
  391.  
  392. #ifdef UNKNOWN_MACHINE
  393. #define M_MACHINE "UNKNOWN_MACHINE"
  394. #define M_OS UNKNOWN_OS
  395.  
  396. /* Required libraries for building on this system. */
  397. #define REQUIRED_LIBRARIES
  398.  
  399. /* Define HAVE_SIGLIST if your system has sys_siglist[]. */
  400. #define HAVE_SIGLIST
  401.  
  402. /* Define HAVE_ALLOCA if you are not using Gcc, but your library
  403.    or compiler has a version of alloca ().  Otherwise, we will use
  404.    our version of alloca () in alloca.c */
  405. #ifndef HAVE_GCC
  406. #define HAVE_ALLOCA
  407. #endif
  408.  
  409. /* Define USE_GNU_MALLOC if you want to use the debugging version
  410.    of malloc ().  We like this on by default. */
  411. #define USE_GNU_MALLOC
  412.  
  413. /* Define USE_GNU_TERMCAP if you want to use the GNU termcap library
  414.    instead of your system termcap library. */
  415. /* #define USE_GNU_TERMCAP */
  416.  
  417. /* Define HAVE_SETLINEBUF if your machine has the setlinebuf ()
  418.    stream library call.  Otherwise, setvbuf () will be used.  If
  419.    neither of them work, you can edit in your own buffer control
  420.    based upon your machines capabilities. */
  421. #define HAVE_SETLINEBUF
  422.  
  423. /* Define HAVE_VPRINTF if your machines has the vprintf () library
  424.    call.  Otherwise, printf will be used.  */
  425. #define HAVE_VPRINTF
  426.  
  427. /* Define SYSDEP_CFLAGS to be the flags to cc that make your compiler
  428.    work.  For example, `-ma' on the RT makes alloca () work. */
  429. #define SYSDEP_CFLAGS
  430.  
  431. #endif  /* UNKNOWN_MACHINE */
  432.